package com.github.baichuan.application.scaffold.rest.dto.dingtalk;

import com.github.baichuan.mapping.Mapping;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;

@Schema(name = "钉钉用户信息")
@Getter
public class User {
    @NotBlank(message = "unionId不能为空")
    @Mapping
    private String unionId;

    @NotBlank(message = "userId不能为空")
    @Mapping
    private String userId;

    @Schema(title = "邮箱")
    @NotBlank(message = "邮箱不能为空")
    @Mapping
    private String email;

    @Schema(title = "手机")
    @NotBlank(message = "手机不能为空")
    @Mapping
    private String mobile;
}
